const hostname = location.hostname

let HttpUrl = ''

// 判断 IP 去改变接口地址
switch (hostname) {
  case '192.168.1.7':
    HttpUrl = 'http://192.168.1.7:8050'
    break
  default:
    HttpUrl = 'http://192.168.1.7:8050'
    break
}

// 后台数据返回成功标识
const ERR_OK = '0000'

// 访问后台传的token值
const Options = {
  headers: {
    token: '12345678'
  }
}

// js访问 static 文件夹路径
const Static = 'static/'
